﻿using System.Drawing;
using System.Windows.Forms;

namespace TestCenter.Classes
{
    class Utils
    {
        public static int GetScreenWidth()
        {
            return SystemInformation.WorkingArea.Height;
        }

        public static int GetScreenHeight()
        {
            return SystemInformation.WorkingArea.Height;
        }

        public static Rectangle GetWorkingArea()
        {
            return SystemInformation.WorkingArea;
        }

        public static string TimeToString(int seconds)
        {
            var minutes = seconds/60;
            seconds = seconds%60;

            var s = "";
            if (minutes > 0)
                s = minutes + " phút ";
            s += seconds + " giây";

            return s;
        }
    }
}
